import type { GlobConfig } from '/#/config';
const fullUrl = (url: string) => {
  return `import.meta.env.${url}`;
}

export const useGlobSetting = (): Readonly<GlobConfig> => {
  const glob: Readonly<GlobConfig> = {
    domainUrl: fullUrl('VITE_GLOB_DOMAIN_URL'),
    apiUrl: fullUrl('VITE_GLOB_API_URL'),
    urlPrefix: fullUrl('VITE_GLOB_API_URL_PREFIX'),
  };
  return glob;
};
